import service from '@/utils/request'

// @Tags SbuData
// @Summary 创建sbu组设置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SbuData true "创建sbu组设置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /sbuData/createSbuData [post]
export const createSbuData = (data) => {
  return service({
    url: '/sbuData/createSbuData',
    method: 'post',
    data
  })
}

// @Tags SbuData
// @Summary 删除sbu组设置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SbuData true "删除sbu组设置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sbuData/deleteSbuData [delete]
export const deleteSbuData = (params) => {
  return service({
    url: '/sbuData/deleteSbuData',
    method: 'delete',
    params
  })
}

// @Tags SbuData
// @Summary 批量删除sbu组设置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除sbu组设置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sbuData/deleteSbuData [delete]
export const deleteSbuDataByIds = (params) => {
  return service({
    url: '/sbuData/deleteSbuDataByIds',
    method: 'delete',
    params
  })
}

// @Tags SbuData
// @Summary 更新sbu组设置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SbuData true "更新sbu组设置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sbuData/updateSbuData [put]
export const updateSbuData = (data) => {
  return service({
    url: '/sbuData/updateSbuData',
    method: 'put',
    data
  })
}

// @Tags SbuData
// @Summary 用id查询sbu组设置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SbuData true "用id查询sbu组设置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sbuData/findSbuData [get]
export const findSbuData = (params) => {
  return service({
    url: '/sbuData/findSbuData',
    method: 'get',
    params
  })
}

// @Tags SbuData
// @Summary 分页获取sbu组设置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取sbu组设置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sbuData/getSbuDataList [get]
export const getSbuDataList = (params) => {
  return service({
    url: '/sbuData/getSbuDataList',
    method: 'get',
    params
  })
}
